package com.laomuji.android.mvvm.http.encrypt

import android.util.Base64

/**
 * 对字符串进行Base64编码
 * @author laomuji666
 * @since 2024/2/20
 */
object Base64Encrypt : BaseEncrypt {
    override fun encrypt(body: String): String {
        return Base64.encodeToString(body.toByteArray(), Base64.DEFAULT)
    }
}